IViewProcessor

Ecng.Serialization

Generic interface for processing view entities with typed CRUD operations.

Реализует: IViewProcessor

Свойства

Select
public IQueryable<TEntity> Select { get; }
value = iViewProcessor.Select

Gets the queryable source for the view entities.

Методы

Create
public ValueTask<TEntity> Create(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Create(view, cancellationToken)

Creates a new view entity.

view
The entity to create.
cancellationToken
Cancellation token.

Возвращает: The created entity.

Delete
public ValueTask<bool> Delete(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Delete(view, cancellationToken)

Deletes a view entity.

view
The entity to delete.
cancellationToken
Cancellation token.

Возвращает: if the entity was deleted; otherwise, .

ReadById
public ValueTask<TEntity> ReadById(TId id, CancellationToken cancellationToken)
result = iViewProcessor.ReadById(id, cancellationToken)

Reads a single entity by its identifier.

id
The entity identifier.
cancellationToken
Cancellation token.

Возвращает: The matching entity.

ReadRange
public ValueTask<TEntity[]> ReadRange(TId[] ids, CancellationToken cancellationToken)
result = iViewProcessor.ReadRange(ids, cancellationToken)

Reads a range of entities by their typed identifiers.

ids
Array of typed entity identifiers.
cancellationToken
Cancellation token.

Возвращает: Array of matching entities.

Update
public ValueTask<TEntity> Update(TEntity view, CancellationToken cancellationToken)
result = iViewProcessor.Update(view, cancellationToken)

Updates an existing view entity.

view
The entity to update.
cancellationToken
Cancellation token.

Возвращает: The updated entity.